package com.liveneo.stoat.demo.ocr;

import java.io.File;

import org.junit.Test;

import net.sourceforge.tess4j.Tesseract;

public class TesseractTest {

	@Test
	public void testOCR() throws Exception {
		File imageFile = new File("D:/车牌.jpg");  
		Tesseract instance = Tesseract.getInstance();  // JNA Interface Mapping  
		String result = instance.doOCR(imageFile);  
		System.out.println(">>>>>>>>" + result);
	}
}
